import App from './App'
import {
	Pinia,
	basePinia
} from '@/store/index.js';
import * as globalFunc from '@/utils/global.js'

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	app.use(basePinia);
	for (let key in globalFunc) {
		app.config.globalProperties[key] = globalFunc[key];
		app.provide(key, globalFunc[key]);
	}
	return {
		app
	}
}
// #endif